﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Boomer.Source.TiledMap;
using FrameWork.Source.Animation_Classes;
using FrameWork.Source.Texture;
using FrameWork.Source.Resource_Manager;

namespace Boomer.Source.Boom
{
    class CActiveBoom : CBoom
    {

        public CActiveBoom()
            : base()
        {
            this.Tag = FrameWork.Tag_Manager.TagManager.TAGGED.ActiveBoom;
        }

        

        public override void update(float deltaTime)
        {
            if (m_isAlive)
            {
                if (this.isExplor)
                {
                    this.explor();
                }
                CTiledMap.updateDeep updateDeep = new CTiledMap.updateDeep(CTiledMap.updateDeepValue);

                this.m_fDeep = updateDeep(this.m_vec2Position, map);
                this.m_fDeep -= 0.01f;
                this.updateAnimation(deltaTime);
            }

            fragment.update(deltaTime);
        }

        public override void draw()
        {
            base.draw();
        }

    }
}
